<template>
  <view class="top-nav">
    <view class="top-nav__item" v-for="item in navList" :key="item.name">
      <view class="top-nav__item--icon">
        <image :src="item.icon" />
      </view>
      <view class="top-nav__item--name">{{ item.name }}</view>
    </view>
  </view>
</template>

<script setup>
import { ref } from 'vue'
const navList = ref([
  { name: '', url: '', icon: '' },
  { name: '', url: '', icon: '' },
  { name: '', url: '', icon: '' },
  { name: '', url: '', icon: '' },
  { name: '', url: '', icon: '' },
  { name: '', url: '', icon: '' },
])
</script>

<style lang="scss">
.top-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  &__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 33.33%;
    &--icon {
      width: 24px;
      height: 24px;

      image {
        width: 100%;
        height: 100%;
      }
    }

    &--name {
      font-size: 14px;
    }
  }
}
</style>
